/* Copyright 2001,2002,2003 NAH6
 * All Rights Reserved
 *
 * Parts Copyright DoD, Parts Copyright Starium
 *
 */
#include "zero_array16.h"

void ZeroArray16 (fxpt_16 *array, int size)
{
  fxpt_16 *array_end = array + size;

  if (((long)array & 0x2) != 0  &&  array != array_end) {
      array[0] = 0;
      array++;
  }

  if (((long)array_end & 0x2) != 0  &&  array != array_end) {
    array_end[-1] = 0;
    array_end--;
  }

  while (array != array_end) {
    *(uint32 *)array = 0;
    array += 2;
  }
}

void ZeroArray32 (fxpt_32 *array, int size)
{
	for( ;size-->0; )
		*array++= 0;
}
